package isp.apps.example.shoppingcart.domain;

import java.math.BigDecimal;

/**
 * When given a cost, the tax calculator return the amount of 
 * tax on that cost
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class IdahoTaxCalculator
  implements isp.apps.example.shoppingcart.domain.TaxCalculator
{
  // instance variables - replace the example below with your own

  private static final BigDecimal TAXRATE = new BigDecimal("0.06");

  /**
     * Constructor for objects of class IdahoPriceCalculator
     */
  public IdahoTaxCalculator()
  {
  }

  /**
     * An example of a method - replace this comment with your own
     * 
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y 
     */
  public BigDecimal getTax(BigDecimal cost)
  {
    BigDecimal tax = cost.multiply(TAXRATE);
    return tax;
  }
}
